package com.luli.mapper;

import com.luli.pojo.UserInfo;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class UserInfoMapperImpl implements UserInfoMapper {

    private SqlSessionTemplate sqlSession;

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }

    @Override
    public List<UserInfo> getUserInfos() {
        UserInfoMapper mapper=sqlSession.getMapper(UserInfoMapper.class);
        return mapper.getUserInfos();
    }

    @Override
    public int addUser(UserInfo userInfo) {
        return 0;
    }
}
